package com.frank.subject.domain.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.frank.subject.domain.entity.SubjectLikedBo;
import com.frank.subject.infra.basic.entity.SubjectLiked;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author Frank Zou
 * @version v0.0.1
 * @date 2025/3/12
 * @description
 */
@Mapper
public interface SubjectLikedBoConvert {

    SubjectLikedBoConvert INSTANCE = Mappers.getMapper(SubjectLikedBoConvert.class);

    SubjectLiked convertBoToEntity(SubjectLikedBo subjectLikedBo);

    Page<SubjectLikedBo> convertEntityPageToBoPage(Page<SubjectLiked> page);
}
